<template>
    <flow-node v-if="row.length > 0" :row="row" ref="flowNodeFormatRef"></flow-node>
</template>
<script setup>
import FlowNode from "./FlowNode.vue";
import { onMounted, ref } from 'vue'
import Api from '@/api/model/workflow.js'
const props = defineProps({
    flowId: {
        type: String,
        default: ''
    },
    processInstanceId: {
        type: String,
        default: ''
    },
    taskId: {
        type: String,
        default: ''
    }
});
const row = ref([]);
onMounted(() => {
    getData()
})
const getData = async () => {
    let params = {
        flowId: props.flowId,
        processInstanceId: props.processInstanceId,
        taskId: props.taskId,
        paramMap: {}
    }
    let res = await Api.task.nodeList.post(params)
    row.value = res.dataList
}
</script>
<style scoped lang="less"></style>
